package cn.tansanqinger.service.verification.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import cn.tansanqinger.dao.nosql.IVerificationCode;
import cn.tansanqinger.service.verification.IVerificationMessageService;

@Controller
public class VerificationMessageImpl implements IVerificationMessageService{
	
	@Autowired
	private IVerificationCode iVerficationCode;
	
	@Override
	public void saveEmailMessageNoSQL(String key, String value) {
		iVerficationCode.saveEmailMessageNoSQL(key, value);
	}

	@Override
	public String readEmailMessageNoSQL(String key) {
		return iVerficationCode.readEmailMessageNoSQL(key);
	}

	@Override
	public boolean removeEmailMessageNoSQL(String key) {
		return iVerficationCode.removeEmailMessageNoSQL(key);
	}
	
	
}
